import { Component, OnInit, Input } from '@angular/core';

@Component({
  selector: 'app-customer-evaluation',
  templateUrl: './customer-evaluation.component.html',
  styleUrls: ['./customer-evaluation.component.scss'],
})
export class CustomerEvaluationComponent implements OnInit {
  @Input() tagData: any;
  constructor() { }
  stars = [];
  ngOnInit() {
    console.log('msg----->' + this.tagData);
    for (let i = 1; i <= 5; i++) {
      this.stars.push(i <= this.tagData.data.satisfaction);
    }
  }

}
